package com.gxa.saas.service.impl;

import com.gxa.saas.mapper.CompanyMapper;
import com.gxa.saas.pojo.Company;
import com.gxa.saas.service.CompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author wanghai
 * @date 2022/6/7 19:08
 */
@Service("companyService")
@Transactional(rollbackFor = {Throwable.class})
public class CompanyServiceImpl implements CompanyService {
    @Autowired
    CompanyMapper companyMapper;

    @Override
    public void updateCompany(Company company) {
        companyMapper.updateCompany(company);
    }


    @Override
    public Company selectCompany() {
        return companyMapper.selectCompany();
    }
}
